package com.zxjbyte.yiyi.extension.job.handler;

import cn.hutool.core.thread.ThreadUtil;
import com.zxjbyte.yiyi.extension.job.core.processor.JobHandler;
import org.springframework.stereotype.Component;

/**
 * @Author zhangxingjia
 * @Date 2023/11/9 11:22
 * @Version: 1.0
 */
@Component
public class TestJobHandler implements JobHandler {

    @Override
    public void execute(Object args) throws Exception {
        System.out.println("定时任务参数===== " + args);
//        System.out.println(args[1]);
        ThreadUtil.sleep(2000);
//        int a = 1/0;
    }
}
